package com.cxt.constant;

import java.math.BigDecimal;

public class CarpoolConstant {
    //拼车类型：1，人找车 2车找人
    public static final int CARPOOL_TYPE_PERSON_FIND_CAR = 1;
    public static final int CARPOOL_TYPE_CAR_FIND_PERSON = 2;

    //拼车状态：1，拼车中 2已拼满 3已结束
    public static final int CARPOOL_STATUS_IN_PROGRESS = 1;
    public static final int CARPOOL_STATUS_FULL = 2;
    public static final int CARPOOL_STATUS_ENDED = 3;

    //终点限制类型：1，团长终点位置 2所有途径点终点位置
    public static final int CARPOOL_END_TYPE_GROUP_LEADER = 1;
    public static final int CARPOOL_END_TYPE_ALL_WAYPOINTS = 2;

    //定价方式
    public static final int PRICING_METHOD_PER_KM = 2; //按公里计费
    public static final int PRICING_METHOD_FLAT_RATE = 1; //一口价

    //计费方式：1，团长自付 2，总距离平摊，3，实际乘坐公里数平摊
    public static final int PRICING_METHOD_GROUP_LEADER_PAY = 1; //团长自付
    public static final int PRICING_METHOD_DISTANCE_SPLIT = 2; //总距离平摊
    public static final int PRICING_METHOD_ACTUAL_DISTANCE_SPLIT = 3; //实际乘坐公里数平摊

    //加入拼车身份
    //1乘客，2司机
    public static final int JOIN_IDENTITY_DRIVER = 1;
    public static final int JOIN_IDENTITY_PASSENGER = 2;
//    public static final int JOIN_IDENTITY_GROUP_LEADER = 1;
//    public static final int JOIN_IDENTITY_PASSENGER = 2;

    //途径点类型：1，起点 2，终点 3，途径点
    public static final int WAYPOINT_TYPE_START = 1;
    public static final int WAYPOINT_TYPE_END = 2;
    public static final int WAYPOINT_TYPE_WAYPOINT = 3;

    //途径点状态：1，未送达 2已送达
    public static final int WAYPOINT_STATUS_UNREACHED = 1;
    public static final int WAYPOINT_STATUS_REACHED = 2;

    //加入拼车的距离限制
    public static final BigDecimal JOIN_DISTANCE_LIMIT = new BigDecimal("5");
}
